package com.yunsom.testdemo.design.agent;

/**
 * @author Xbao
 * @version 1.0
 * @description
 * @date 2021/3/17 18:41
 */
public class RealVideo implements Video{

  private String fileName;

  public RealVideo(String fileName) {
    this.fileName = fileName;
    loadFromDisk(fileName);
  }

  @Override
  public void display() {
    System.out.println("playing video..."+fileName);
  }

  private void loadFromDisk(String fileName){
    System.out.println("loading..."+fileName);
  }
}
